﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using mvcfluentcontrols.Models;

namespace mvcfluentcontrols.Controllers
{
    public class TestDataController : Controller
    {
        //
        // GET: /TestData/

        public ActionResult Index()
        {
            return View(new TestData());
        }

        [HttpPost]
        public ActionResult Index(FormCollection collection)
        {
            TestData data = new TestData();
            TryUpdateModel(data);
            return View();
        }

    }
}
